<template>
  <div class="bgff p20">
    <el-table :data="tableData" style="width: 100%">
      <el-table-column type="index" width="50"></el-table-column>
      <el-table-column prop="name" label="模块名字" min-width="120"></el-table-column>
      <el-table-column prop="phone" label="电话" min-width="120"></el-table-column>
      <el-table-column prop="date" label="创建时间" min-width="150"></el-table-column>
      <el-table-column prop="date" label="修改时间" min-width="120"></el-table-column>
      <el-table-column prop="name" label="操作员" min-width="120"></el-table-column>
      <el-table-column fixed="right" label="操作" width="100">
        <template slot-scope="scope">
          <el-button @click="handleClick(scope.row)" type="text" size="small">编辑</el-button>
        </template>
      </el-table-column>
    </el-table>
    <set ref="setform"></set>
  </div>
</template>

<script>
import set from "./modul/set";
export default {
  components: { set },
  name: "week",
  data() {
    return {
      tableData: [
        {
          date: "2016-05-02",
          name: "王小虎",
          role: "技术部/普通用户",
          status: "开启",
          phone: "15680529067",
          address: "上海市普陀区金沙江路 1518 弄",
          zip: 200333
        }
      ]
    };
  },
  methods: {
    handleClick(data) {
      const _this = this.$refs.setform;
      _this.dialog = true;
    }
  }
};
</script>

<style lang="scss">
</style>
